-- GENERATED SPELL FOR [Primordial Drake] --


function spell0_28378(pUnit, Event) --@Birthing Flame,n/a--
pUnit:FullCastSpellOnTarget(52791,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28378', 10000, 1)
end

function spell1_28378(pUnit, Event) --@Flame Spit,n/a--
pUnit:FullCastSpellOnTarget(55071,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28378', 5000, 1)
end

function Sorts_28378(pUnit, Event)
local choix_sorts_28378 = math.random(0, 1)
if choix_sorts_28378 == 0 then
pUnit:RegisterEvent('spell0_28378', 1, 1)
end
if choix_sorts_28378 == 1 then
pUnit:RegisterEvent('spell1_28378', 1, 1)
end
end

function mob28378_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28378', math.random(1500, 3000), 1)
end

function mob28378_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28378_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28378_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28378, 1, 'mob28378_Action')
RegisterUnitEvent(28378, 2, 'mob28378_Leave')
RegisterUnitEvent(28378, 3, 'mob28378_Kill')
RegisterUnitEvent(28378, 4, 'mob28378_Die')
